import service from "@/utils/request";
/**定义请求方法 */
const get = (url, params, config) => {
  return service.request({
    method: "get",
    url,
    params,
    ...config,
  });
};
const post = (url, params, config) => {
  return service.request({
    method: "post",
    url,
    data: params,
    ...config,
  });
};
const put = (url, params, config) => {
  return service.request({
    method: "put",
    url,
    data: params,
    ...config,
  });
};
const del = (url, params, config) => {
  return service.request({
    method: "delete",
    url,
    data: params,
    ...config,
  });
};
// 导出请求方法
export default { get, post, put, del };
